# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-trustme
pkgver=0.6.0
pkgrel=1
pkgdesc="#1 quality TLS certs while you wait, for the discerning tester"
url="https://github.com/python-trio/trustme"
arch="noarch"
license="Apache-2.0 OR MIT"
depends="python3 py3-cryptography py3-idna py3-openssl py3-service_identity"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://pypi.python.org/packages/source/t/trustme/trustme-$pkgver.tar.gz"
builddir="$srcdir/trustme-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="9fda58320f2055d2c23369d2df213994cafd9af7b7eb3933162bbe09a81abd7a9cd2b2e7cae43b25d40d20311213d8a1c13155b61498b848a2850d22fa1e1418  trustme-0.6.0.tar.gz"
